/*
 * @Description:
 * @Autor: 刘诗文
 * @Date: 2020-11-10 09:44:23
 * @LastEditors: 刘诗文
 * @LastEditTime: 2020-12-09 16:10:45
 */
import axios from '@/api/fetch';
import * as types from './types';
import SERVER from '@/api/server';

// 选择车主信息
export const selectOwnerInfo = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/customerCare/vehicleTransferOwnership/selectOwnerInfo`, { params });

// 选择车辆信息
export const selectVehicleInfo = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/customerCare/vehicleTransferOwnership/selectVehicleInfo`, { params });

// 车辆过户
export const vehicleTransfer = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/customerCare/vehicleTransferOwnership`, params, { mark: types.SAVE });

// 车辆过户获取投保单号
export const getProposalCode = params => axios.get(`${SERVER.DMSCLOUD_CUSTOMERREPAIR}/vehicle/insProposal/getProposalCode`, { params });
